#
# Be sure to run `pod lib lint HWCommon.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'HWCommon'
  s.version          = '0.1.2'
  s.summary          = '海外Common组件库'
  
  # This description is used to generate tags and improve search results.
  #   * Think: What does it do? Why did you write it? What is the focus?
  #   * Try to keep it short, snappy and to the point.
  #   * Write the description between the DESC delimiters below.
  #   * Finally, don't worry about the indent, CocoaPods strips it!
  
  s.description      = <<-DESC
  TODO: Add long description of the pod here.
  DESC
  
  s.homepage         = 'https://gitee.com/hxs1024/HWCommon'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'HeXiaoSen' => 'hxs1024@163.com' }
  s.source           = { :git => 'https://gitee.com/hxs1024/HWCommon.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
  
  s.ios.deployment_target = '8.0'
  
  
  
  s.subspec 'Category' do |ss|
    ss.public_header_files = 'Pod/Classes/**/*.h'
    ss.dependency 'YYCategories', '~>1.0.4'
    ss.source_files = 'HWCommon/Classes/Category/*'
  end
  
  s.subspec 'Encode' do |ss|
    
    ss.subspec 'AESAndRSA' do |sss|
      sss.public_header_files = 'Pod/Classes/**/**/*.h'
      sss.source_files = 'HWCommon/Classes/Encode/AESAndRSA/*'
    end
    
    ss.subspec 'MD5' do |sss|
      sss.public_header_files = 'Pod/Classes/**/**/*.h'
      sss.source_files = 'HWCommon/Classes/Encode/MD5/*'
    end
  end
  
  s.subspec 'Helper' do |ss|
    
    ss.subspec 'WebSocket' do |sss|
      sss.public_header_files = 'Pod/Classes/**/**/*.h'
      sss.source_files = 'HWCommon/Classes/Helper/WebSocket/*'
    end
  end
  
  s.subspec 'HWProgressHUD' do |ss|
    ss.dependency 'MBProgressHUD', '~> 1.0.0'
    ss.dependency 'YYModel', '~>1.0.4'
    ss.dependency 'YYCategories', '~>1.0.4'
    ss.dependency 'Masonry', '~> 1.1.0'
    ss.public_header_files = 'Pod/Classes/**/*.h'
    ss.source_files = 'HWCommon/Classes/HWProgressHUD/*'
  end
  
  s.subspec 'UIComponent' do |ss|
    ss.subspec 'CJRotationRingView' do |sss|
      sss.public_header_files = 'Pod/Classes/**/**/*.h'
      sss.source_files = 'HWCommon/Classes/UIComponent/CJRotationRingView/*'
    end
  end
  
  s.subspec 'Utils' do |ss|
    ss.public_header_files = 'Pod/Classes/**/*.h'
    ss.source_files = 'HWCommon/Classes/Utils/*'
  end
  
  #*************************文件分层***********************************#
  
  #*************************依赖库************************************#
  
  # s.public_header_files = 'Pod/Classes/**/*.h'
  # s.frameworks = 'UIKit'
  #    s.dependency 'YYCategories', '~> 1.0.4'
  #    s.dependency 'Crashlytics', '~> 3.10.9'
  #    s.dependency 'MBProgressHUD', '~> 1.0.0'
  #    s.dependency 'Masonry', '~> 1.1.0'
  #    s.dependency 'YYModel', '~>1.0.4'
  #*************************依赖库************************************#
end
